﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServiceStack.ServiceHost;

namespace g42.Dto
{
  //[Route("/AllPerson", "POST")]
  //[Route("/AllPerson/{Id}", "PUT")]
  public class Person : IReturn<Person>
  {
    public Guid Id { get; set; }
    public Mandant Md { get; set; }
    public Adresse Adresse { get; set; }
    public string Nr { get; set; }
    public string Name { get; set; }
    public string Vorname { get; set; }
  }

  //REST Resource DTO
  //[Route("/AllPerson")]
  //[Route("/AllPerson/{Ids}")]
  [Route("/PersonList")] // dadurch kriegt man die Liste im Browser mit: http://localhost:1337/PersonList
  public class PersonList : IReturn<List<Person>>
  {
    public string Filter { get; set; }
    public Guid[] Ids { get; set; }
    public PersonList(params Guid[] ids)
    {
      this.Ids = ids;
    }

  }

}
